package com.miplus.ccrm.workflow.service;

import com.github.yulichang.base.MPJBaseService;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.workflow.model.common.DeleteRequest;
import com.miplus.ccrm.workflow.model.dto.knowledge.MatchDTO;
import com.miplus.ccrm.workflow.model.dto.knowledge.MatchRuleCreateDTO;
import com.miplus.ccrm.workflow.model.dto.knowledge.MatchRuleUpdateDTO;
import com.miplus.ccrm.workflow.model.po.WorkflowKnowledgeQuestionRule;
import com.miplus.ccrm.workflow.model.vo.MatchRuleVO;
import com.miplus.ccrm.workflow.model.vo.MatchVO;

import java.util.List;

/**
 * @author feixiang
 * @description 针对表【workflow_knowledge_question_rule(知识库问题匹配规则表（存储问题的正则/关键词，支持任意数量）)】的数据库操作Service
 * @createDate 2025-11-05 14:32:01
 */
public interface WorkflowKnowledgeQuestionRuleService extends MPJBaseService<WorkflowKnowledgeQuestionRule> {

    CmdResVo cereateMatchRule(MatchRuleCreateDTO ruleDTO);

    CmdResVo updateMatchRule(MatchRuleUpdateDTO ruleDTO);

    CmdResVo deleteMatchRule(DeleteRequest deleteRequest);

    List<MatchRuleVO> getMatchRuleList(Long questionId);

    MatchVO matchKnowledgeQuestion(MatchDTO matchDTO);
}
